﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Nancy;

namespace FeatureServer.Modules
{
    public class FeatureServiceRootModule : NancyModule
    {
        public FeatureServiceRootModule()
            : base("/rest/services/")
        {
            Get["/{featureServiceName}/FeatureServer"] = parameters =>
             {
                 string s = parameters.featureServiceName;
                 string[] words = s.Split(new char[] { '/' });
                 String servername = words.Last();
                 return null;
             };
        }
    }
}